﻿using System.Collections.Generic;
using Joy.Erp.BasicArchives.Asns;
using Joy.Erp.BasicArchives.Procurements;
using Joy.Erp.BasicArchives.Production;
using Joy.Erp.BasicArchives.Receipt;
using Joy.Erp.BasicArchives.Sales;
using Volo.Abp.Application.Dtos;

namespace Joy.Erp.Ufida.Core
{
    public class DocumentSyncAppService : UfidaAppService, IDocumentSyncAppService
    {
        public PagedResultDto<AnalysisDto> GetEmpty()
        {
            var list = new List<AnalysisDto>
            {
                new AnalysisDto { Id = typeof(SaleOrder).FullName, Order = 1 },
                new AnalysisDto { Id = typeof(PurchaseRequisition).FullName, Order = 2 },
                new AnalysisDto { Id = typeof(PurchaseOrder).FullName, Order = 3 },
                new AnalysisDto { Id = typeof(Asn).FullName, Order = 4 },
                new AnalysisDto { Id = typeof(Receivement).FullName, Order = 5 },
                //new AnalysisDto{ Id = typeof(PlanOrder).FullName, Order = 6 },
                new AnalysisDto { Id = typeof(ProductionOrder).FullName, Order = 7 },
            };

            return new PagedResultDto<AnalysisDto>(list.Count, list);
        }
    }
}
